package com.youlu.campus.entity.pay.statistics;

import com.youlu.campus.base.base.EntityBase;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.data.mongodb.core.mapping.Document;

@Getter
@Setter
@Document(collection = "activity_pay_page_statistics")
@CompoundIndexes({
        @CompoundIndex(name = "activityId_-1_date_-1_pageKey_-1", def = "{'activityId':-1,'date':-1,'pageKey':-1}",
                unique = true)
})
public class ActivityPayPageStatistics extends EntityBase {

    private String activityId;
    private String pageKey;
    private String pageName;
    private String dateFormat;

    private Integer date;

    private Long uv =0L;

    private Long pv=0L;

    /**
     * 停留秒数
     */
    private Double second =0D;

}
